package com.cug.zfanspring.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;

import java.sql.Timestamp;
public class Device {
    @JsonIgnore
    private long id;
    private String area;
    private String device;
    @JsonIgnore
    private boolean state;
    @JsonIgnore
    private boolean isResolve;
    @JsonFormat(timezone = "GMT+8", pattern="YYYY-MM-dd")
    private Timestamp time;
    @JsonIgnore
    private String code;
    @JsonIgnore
    private boolean isRemove;



    public String getArea() {
        return area;
    }

    public String getDevice() {
        return device;
    }

    public boolean isState() {
        return state;
    }
    @JsonIgnore
    public boolean isResolve() {
        return isResolve;
    }

    public Timestamp getTime() {
        return time;
    }

    public String getCode() {
        return code;
    }
     @JsonIgnore
    public boolean isRemove() {
        return isRemove;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public void setDevice(String device) {
        this.device = device;
    }

    public void setState(boolean state) {
        this.state = state;
    }

    public void setResolve(boolean resolve) {
        isResolve = resolve;
    }

    public void setTime(Timestamp time) {
        this.time = time;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setRemove(boolean remove) {
        isRemove = remove;
    }
}
